Sparkler is an R package designed to bring joy, delight, and atmosphere to your Shiny apps, RMarkdown documents, and Quarto presentations.
Sparkler solves this by providing lightweight, high-performance visual engines—Confetti, Fireworks, and Atmospheric Weather—that render as full-screen overlays on top of your Shiny apps and RMarkdown documents.
You can install the development version from GitHub:
# install.packages("devtools")
devtools::install_github("CodingTigerTang/sparkler")
library(sparkler)
sparkler::run_demo()
You don’t need Shiny to see the magic! You can run these functions directly in your R console to test them. They will render inside the RStudio Viewer pane.
# Pop some confetti in the viewer
sparkler::confetti()
# Watch a meteor shower
# Note: In the console, weather renders with a dark background so particles are visible.
sparkler::weather(type = "meteor")
# Snowy day
sparkler::weather(type = "snow")
# Fireworks!
sparkler::fireworks()